<?php


namespace App\Http\Request\System\User;


use App\Common\Utils\BaseRequest;

class GetStudentsByClassIdRequest extends BaseRequest
{
    public function rules() {
        $rules = [
            'class_id' => 'required|integer|min:1',
            'lesson_id' => 'required|integer|min:1'
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'class_id.required' => '班级id不能为空',
            'class_id.integer' => '班级id必须为数字',
            'class_id.min' => '班级id必须大于1',
            'lesson_id.required' => '课程id不能为空',
            'lesson_id.integer' => '课程id必须为数字',
            'lesson_id.min' => '课程id必须大于1',
        ];

        return $messages;
    }
}
